﻿using System.Windows;

namespace RG.Common.WPF.Controls.ColumnInfoDataGrid
{
    public static class CellDataAttachedProperty
    {

        public static readonly DependencyProperty CellDataProperty = DependencyProperty.RegisterAttached(
             "CellData", typeof(object), typeof(FrameworkElement), new FrameworkPropertyMetadata(null));

        public static void SetCellData(FrameworkElement column, object value)
        {
            column.SetValue(CellDataProperty, value);
        }

        public static object GetCellData(FrameworkElement grid)
        {
            return grid.GetValue(CellDataProperty);
        }
    }
}
